﻿namespace Digitalmes.Domain.Entities.Sys;

/// <summary>
/// 职位
/// </summary>
[SugarTable("sys_pos")]
public sealed class SysPos : AuditedEntity, ISoftDelete
{
    /// <summary>
    /// 职位名称
    /// </summary>
    [NotNull]
    public string? Name { get; set; }

    /// <summary>
    /// 职位编码
    /// </summary>
    [NotNull]
    public string? Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Order { get; set; }

    /// <summary>
    /// 启用状态（0->停用，1->启用）
    /// </summary>
    public EnabledStatusEnum Status { get; set; }

    public bool IsDeleted { get; set; }
}
